<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<body>
	<ui:composition>

		<div class="navbar-inner">
			<div class="container">
				<a class="btn btn-navbar" data-toggle="collapse"
					data-target=".nav-collapse"> <span class="icon-bar"></span> <span
					class="icon-bar"></span> <span class="icon-bar"></span>
				</a>
				<h:form id="devise">
				<h:outputText value="Select your country "/>
					<h:selectOneMenu value="#{loginMB.countrySelected}" styleClass="selectDevise"
						onchange="submit()"
						valueChangeListener="#{loginMB.countryChanged}">
                        <f:selectItems value="#{loginMB.countries}" />
					</h:selectOneMenu>
					
					<h:outputText value="#{loginMB.currency}"/>
				</h:form>
				<a class="brand" href="../index.html"><span
					class="color-highlight">A</span> World To Learn</a>
				<div class="nav-collapse">
					<ul class="nav pull-right add-on">
						<li class="active"><h:outputLink value="home.xhtml">Home</h:outputLink></li>
						<li><h:outputLink value="offerslist.xhtml">All Offers</h:outputLink></li>
						
						<li><h:form styleClass="logout" >
								<h:commandLink action="#{loginMB.deconnexion}" 
									rendered="#{loginMB.userBu.connected}">Logout</h:commandLink>
							</h:form></li>
						<li><h:link outcome="login"
								rendered="#{not loginMB.userBu.connected}">Login</h:link></li>
						<!--<li><a href="pages/login.xhtml">Connexion</a></li>-->
					</ul>
				</div>
				<!--/.nav-collapse -->
			</div>
		</div>

	</ui:composition>

</body>
</html>